package com.tempjob.common.businesss.mongo.entity;

import com.anwen.mongo.annotation.ID;
import com.anwen.mongo.annotation.collection.CollectionField;
import com.anwen.mongo.annotation.collection.CollectionName;
import com.anwen.mongo.enums.IdTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author hui
 * @Date 2024/12/9 20:47
 **/
@Data
@ApiModel
@CollectionName("user_course")
public class UserCourse {

    @ID(type = IdTypeEnum.OBJECT_ID)
    @CollectionField("_id")
    private String id;

    @CollectionField("user_id")
    @ApiModelProperty("用户id")
    private String userId;

    @CollectionField("course_id")
    @ApiModelProperty("课程id")
    private String courseId;

    @CollectionField("video_id")
    @ApiModelProperty("视频id")
    private String videoId;

    @CollectionField("watch_seconds")
    @ApiModelProperty("观察时长")
    private Integer watchSeconds;

    @CollectionField("total_seconds")
    @ApiModelProperty("总时长")
    private Integer totalSeconds;

    @CollectionField("update_time")
    @ApiModelProperty("更新时间")
    private Date updateTime;

    @CollectionField("create_time")
    @ApiModelProperty("创建时间")
    private Date createTime;

}
